import java.lang.*;

public class MyPoint {

    private double x, y;

    public double getX() {
        return x;
    }

    public void setX(double x) {
        this.x = x;
    }

    public double getY() {
        return y;
    }

    public void setY(double y) {
        this.y = y;
    }

    @Override
    public String toString() {
        return "MyPoint{" +
                "x=" + x +
                ", y=" + y +
                '}';
    }

    public MyPoint() {

        this(0, 0);
    }

    public MyPoint(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public static void main(String[] args) {
        MyPoint p = new MyPoint(2, 3);
        MyPoint q = new MyPoint(4, 5);
        System.out.println(p);
        System.out.println(q);
    }

}
 